package main

import (
	"gforum/config"
	"gforum/router"
)

func main() {
	config.InitConfig()

	r := router.SetUpRouter()

	port := config.Instance.App.Port
	if port == "" {
		port = "8080"
	}

	r.Run(":" + port)
}
